package com.sxt;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;


@EnableScheduling     //开启定时任务
@SpringBootApplication
@MapperScan(basePackages= {"com.sxt.*.mapper"})
//关闭security 启动用户名密码验证
@EnableAutoConfiguration(exclude = {
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class
})
public class Application extends SpringBootServletInitializer {
	//war包部署
//	@Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
//       return application.sources(Application.class);
//    }
	
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

}
